package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseDriver;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseDriver is a Querydsl query type for EBaseDriver
 */
@Label("驾驶员查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseDriver extends RelationalPathBase<EBaseDriver> {

    private static final long serialVersionUID = -1386850366;

    public static final QBaseDriver baseDriver = new QBaseDriver("base_driver");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseDriver> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCompany> baseCompanyFk = createForeignKey(baseCompanyId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseFleet> baseDriverBaseFleet1Fk = createForeignKey(baseFleetId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbFuelRegister> _tbFuelRegisterBaseDriver1Fk = createInvForeignKey(id, "base_driver_id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbContainerInfo> _driverFk = createInvForeignKey(id, "driverId");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCar> _baseCarBaseDriver1Fk = createInvForeignKey(id, "base_driver_id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbContainerInfo> _trailerDriverIdFk = createInvForeignKey(id, "trailerDriverId");

    }

    public final StringPath baseCompanyId = createString("baseCompanyId");

    public final StringPath baseFleetId = createString("baseFleetId");

    public final StringPath comment = createString("comment");

    public final StringPath company = createString("company");

    public final StringPath drivingLicence = createString("drivingLicence");

    public final StringPath drivingType = createString("drivingType");

    public final StringPath flag = createString("flag");

    public final StringPath fleetId = createString("fleetId");

    public final StringPath id = createString("id");

    public final StringPath identityCard = createString("identityCard");

    public final StringPath limitedDate = createString("limitedDate");

    public final StringPath mobile = createString("mobile");

    public final StringPath name = createString("name");

    public final StringPath onlineTask = createString("onlineTask");

    public final StringPath openId = createString("openId");

    public final StringPath password = createString("password");

    public final StringPath qualificationNumber = createString("qualificationNumber");

    public final StringPath status = createString("status");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseDriver(String variable) {
        super(EBaseDriver.class, forVariable(variable), "null", "base_driver");
        addMetadata();
    }

    public QBaseDriver(String variable, String schema, String table) {
        super(EBaseDriver.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseDriver(Path<? extends EBaseDriver> path) {
        super(path.getType(), path.getMetadata(), "null", "base_driver");
        addMetadata();
    }

    public QBaseDriver(PathMetadata<?> metadata) {
        super(EBaseDriver.class, metadata, "null", "base_driver");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(baseCompanyId, ColumnMetadata.named("base_company_id").withIndex(15).ofType(Types.CHAR).withSize(24));
        addMetadata(baseFleetId, ColumnMetadata.named("base_fleet_id").withIndex(13).ofType(Types.CHAR).withSize(24));
        addMetadata(comment, ColumnMetadata.named("comment").withIndex(12).ofType(Types.VARCHAR).withSize(45));
        addMetadata(company, ColumnMetadata.named("company").withIndex(9).ofType(Types.VARCHAR).withSize(45));
        addMetadata(drivingLicence, ColumnMetadata.named("drivingLicence").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(drivingType, ColumnMetadata.named("drivingType").withIndex(6).ofType(Types.VARCHAR).withSize(45));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(14).ofType(Types.VARCHAR).withSize(45));
        addMetadata(fleetId, ColumnMetadata.named("fleetId").withIndex(10).ofType(Types.VARCHAR).withSize(45));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(identityCard, ColumnMetadata.named("identityCard").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(limitedDate, ColumnMetadata.named("limitedDate").withIndex(7).ofType(Types.VARCHAR).withSize(45));
        addMetadata(mobile, ColumnMetadata.named("mobile").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(name, ColumnMetadata.named("name").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(onlineTask, ColumnMetadata.named("onlineTask").withIndex(18).ofType(Types.VARCHAR).withSize(5));
        addMetadata(openId, ColumnMetadata.named("openId").withIndex(16).ofType(Types.VARCHAR).withSize(100));
        addMetadata(password, ColumnMetadata.named("password").withIndex(17).ofType(Types.VARCHAR).withSize(255));
        addMetadata(qualificationNumber, ColumnMetadata.named("qualificationNumber").withIndex(8).ofType(Types.VARCHAR).withSize(45));
        addMetadata(status, ColumnMetadata.named("status").withIndex(11).ofType(Types.VARCHAR).withSize(45));
    }

}

